import request from "@/utils/request";

// 分页查询所有信息
export const getSupplierList = (supplierName,linkPhone,page, pageSize) => request.get(`/supplier?supplierName=${supplierName}&linkPhone=${linkPhone}&page=${page}&pageSize=${pageSize}`)
// export const getSupplierList = () => request.get(`/supplier`);

//新增供应商
export const addSupplier = (data) => request.post(`/supplier`,data);

//修改供应商
export const updateSupplier = (data) => request.put(`/supplier`,data);

//删除供应商
export const deleteSupplier = (id) => request.delete(`/supplier/${id}`);
